package tugas.akhir.jason;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class splash extends Activity{

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.splash);
        final int welcomeScreenDisplay = 3000;
        Thread welcomeThread = new Thread() {
        	 int wait = 0;
        	 @Override
        	 public void run() {
        	    try {
        	    super.run();
        	    while (wait < welcomeScreenDisplay) {
        	       sleep(100);
        	       wait += 100;}
        	        } catch (Exception e) {
        	          System.out.println("EXc=" + e);
        	        } finally {
        	          startActivity(new Intent(splash.this,MIDDASActivity.class));
        	         finish();
        	         }
        	         }
        	        };
        	        welcomeThread.start();
        	 
        	    }
		}